package com.lagou.module.entity;

import java.io.Serializable;
import java.util.Date;

public class Student implements Serializable {

    private static final long serialVersionUID = 714113260359138859L;

    private int id;
    private String name;
    private String sex;
    private Date birthday;
    private String email;
    private String comments;
    private int classGradeId;

    //无参构造
    public Student() {
    }

    //不含id 的构造
    public Student(String name, String sex, Date birthday, String email, String comments, int classGradeId) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comments = comments;
        this.classGradeId = classGradeId;
    }

    //带有id 的构造
    public Student(int id, String name, String sex, Date birthday, String email, String comments, int classGradeId) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comments = comments;
        this.classGradeId = classGradeId;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public int getClassGradeId() {
        return classGradeId;
    }

    public void setClassGradeId(int classGradeId) {
        this.classGradeId = classGradeId;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                ", comments='" + comments + '\'' +
                '}';
    }
}
